#include "myhttpd.h"
#include "list_msg.h"
#include "list_client.h"
#include "initialize.h"
#include "get_message.h"

s_configuration *g_config = NULL;

int main(void)
{
  int		svr_socket;
  fd_set	select_list;
  s_client	*list_client	= NULL;
  s_msg		*list_msg	= NULL;

  svr_init(&svr_socket);
  while (1)
  {
    list_msg = list_msg;
    list_msg = get_msg(&list_client, &select_list, svr_socket);
    if (list_msg != NULL)
      printf("data : %s\n", list_msg->data);
  }
  return (0);
}
